package com.ds.dsm.aggregation.module.service;

import com.ds.esd.custom.bean.MethodConfig;
import com.ds.esd.custom.bean.enums.ModuleViewType;
import com.ds.esd.custom.tree.annotation.TreeAnnotation;
import com.ds.esd.custom.tree.annotation.TreeItemAnnotation;
import com.ds.esd.tool.ui.component.list.TreeListItem;
import com.ds.web.annotation.Pid;


@TreeAnnotation()
public class WinConfigTree extends TreeListItem {

    @Pid
    ModuleViewType dsmType;
    @Pid
    String sourceClassName;
    @Pid
    String methodName;
    @Pid
    String domainId;
    @Pid
    String viewInstId;

    @TreeItemAnnotation(bindService = ModuleConfigService.class, caption = "窗体配置", imageClass = "spafont spa-icon-values")
    public WinConfigTree(MethodConfig methodAPIBean) {
        this.dsmType = methodAPIBean.getModuleViewType();
        this.methodName = methodAPIBean.getMethodName();
        this.viewInstId = methodAPIBean.getViewInstId();
        this.sourceClassName = methodAPIBean.getSourceClassName();
        this.id = methodName + "_WinConfig";


    }

    public ModuleViewType getDsmType() {
        return dsmType;
    }

    public void setDsmType(ModuleViewType dsmType) {
        this.dsmType = dsmType;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getViewInstId() {
        return viewInstId;
    }

    public void setViewInstId(String viewInstId) {
        this.viewInstId = viewInstId;
    }
}


